<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 18:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="menu" value="none" scope="request"/>
<c:set var="dashboardMenuTag" value="myorg" scope="request"></c:set>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!Doctype html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>政府数据开放平台</title>
    <jsp:include page="../../commons/include.jsp"/>

</head>
<body>


<jsp:include page="../../commons/top.jsp"/>
<div class="main">


    <jsp:include page="../../commons/dashboardMenu.jsp"/>

    <div class="left">
        <c:set var="leftMenu" value="org" scope="request"></c:set>
        <jsp:include page="commons/leftMenu.jsp"/>
    </div>

    <div  class="right">
        <div style="padding-top: 60px;padding-left: 80px;"><span style="font-size: 20px;font-weight: bold;">更新机构</span></div>

        <div>
            <form method="post" action="/front/my/org/modify" enctype="multipart/form-data">

                <input type="hidden" name="id" value="${requestScope.org.id}">

                <table class="updateTable">
                    <tr>
                        <td width="100">名称：</td>
                        <td width="200"> <input type="text" name="name" value="${requestScope.org.name}"></td>
                    </tr>
                    <tr>
                        <td>上级机构:</td>
                        <td>
                            <select name="superOrg"  dataSync='true' syncType='org' selectValue="${requestScope.org.superOrg.id}" > </select>
                        </td>
                    </tr>
                    <tr>
                        <td>图片:</td>
                        <td>

                            <img src="${requestScope.org.headimage}"
                                 style="width: 80; height: 80px;" align="left">
                            <br/>
                            建议头像大小为80*80像素
                            <br/>
                            <input name="image" type="file">
                        </td>
                    </tr>

                    <tr>
                        <td>机构分类:</td>
                        <td>
                            <select name='category'  dataSync='true' syncType='dictionary' dictionaryType='ORG_CATEGORY' selectValue='${requestScope.org.category.id}'></select>
                        </td>
                    </tr>
                    <tr>
                        <td>联系人:</td>
                        <td><input type="text" name="contacts" value="${requestScope.org.contacts}"></td>
                    </tr>

                    <tr>
                        <td>电话:</td>
                        <td><input type="text" name="telephone" value="${requestScope.org.telephone}"></td>
                    </tr>

                    <tr>
                        <td>电子邮箱:</td>
                        <td><input type="text" name="email" value="${requestScope.org.email}"></td>
                    </tr>

                    <tr>
                        <td>地址:</td>
                        <td> <input type="text" name="address" value="${requestScope.org.address}"></td>
                    </tr>

                    <tr>
                        <td>邮编:</td>
                        <td> <input type="text" name="postcode" value="${requestScope.org.postcode}"></td>
                    </tr>


                    <tr>
                        <td>简介:</td>
                        <td><textarea name="description">${requestScope.org.description}</textarea></td>
                    </tr>


                    <tr>
                        <td colspan="2" style="height: 40px">
                            <input type="submit" class="btn btn-primary" value="提&nbsp;&nbsp;交">
                        </td>
                    </tr>

                </table>

            </form>
        </div>
    </div>


</div>
<jsp:include page="../../commons/buttom.jsp"/>
</body>
</html>
